export interface Project {
  ID: number;
  ProjectName: string;
  ScanCount: number;
  Status: number; // 0: 扫描中, 1: 已完成
  CreateTime: string;
}

export interface ScanResult {
  ID: number;
  ProjectID: number;
  IP: string;
  Port: number;
  PortStatus: string;
  Service: string;
  CreateTime: string;
}

export interface ServiceInfo {
  id: number;
  port: number;
  service: string;
  created_at: string;
}

export interface ApiResponse<T> {
  Data: never[];
  code: number;
  message: string;
  data: T;
}

export interface PaginationParams {
  page?: number;
  page_size?: number;
} 

export interface PaginationResult<T> {
  Page?: number;
  PageSize?: number;
  TotalCount?: number;
  TotalPages?: number;
  Data?: T[];
} 